#include<iostream>
using namespace std;

class Base1
{
public:
	int m_A;
	
	Base1()
	{
		m_A = 100;
	}
};

class Base2
{
public:
	int m_A;
	
	Base2()
	{
		m_A = 200;
	}
};

class Son :public Base1, public Base2
{
public:
	int m_A;
	int m_D;
	
	Son()
	{
		m_A = 300;
		m_D = 400;
	}
};

int main()
{
	Son s;
	cout << "sizeof(son) = " << sizeof(Son) << endl;
	
	cout << s.m_A << endl << s.Base1::m_A << endl << s.Base2::m_A << endl;
	return 0;
}
